﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Site.ViewModels.ProjectListModels>" %>
<%@ Import Namespace="SDT.Model" %>
<%@ Import Namespace="SDT.Site.ViewModels" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<div class="bor_cor mar_t" style="margin-bottom: 5px;">
    <div class="bar_org_small module-title_order" align="center">
        <span class="module-title module-title_order"><%=ViewData["Title"] %></span>
    </div>
    <div class="module_content_order">
        <div id="product-order" class="project-search">
            
             <%foreach (var item in Model.Projects)
                  { %>
                <div class="pad" style="text-align: center;">
                    <% string imgPath = (item.ImagePath != null && item.ImagePath != string.Empty) ? SDT.Lib.Common.Utils.GenThumbnail(item.ID, 146, 110, item.ImagePath, Model.ImagePath, Model.ImageUrl) : SDT.Lib.Common.Globals.DefaultLogo; %>
                    
                    <div><a href="/project/details/<%=item.ID %>/<%=Html.ToUrlFriendly(item.Title)%>"><img alt="<%=Html.Encode(item.Title) %>" src="<%=imgPath %>" class="bor_img" width="146" height="110" /></a></div>
                    <div><a style="margin-top: 2px; color: #147AC5; text-align: center;" href="/project/details/<%=item.ID %>/<%=Html.ToUrlFriendly(item.Title)%>"><strong><%=Html.Encode(item.Title)%></strong></a></div>
                </div>
                <%} %>
        </div>
    </div>
    <div class="clear"></div>
</div>

